package com.libo.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 环境实体类
 *  @Data get、set方法，equals hashcode toString
 *   @NoArgsConstructor 提供空参构造器
 *   @AllArgsConstructor 提供全参构造器
 *   @Accessors(chain = true) 链式调用set方法
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class Environment implements Serializable {

    private static final long serialVersionUID = 1L;

    //主键
    private Integer id;
    //环境名称
    private String name;
    //发送端id
    private String sendId;
    //树莓派系统id
    private String smartId;
    //实验箱区域模块id
    private String areaModelId;
    //实验模块上传传感器地址
    private String sensorAddress;
    //传感器个数
    private Integer sensorCount;
    //指令标号
    private String instructionDesignation;
    //环境数据
    private Float environmentData;
    //状态标识
    public Integer status;
    //采集时间
    private LocalDateTime gatherTime;

}
